#pragma once

struct TcpPacket;
class TcpConnection;

class TcpPacketDispatcher
{
public:
	virtual void OnConnectionConnected(TcpConnection* connection) = 0;
	virtual void OnPacketReceived(TcpConnection* connection, TcpPacket* packet) = 0;
	virtual void OnConnectionClosed(TcpConnection* connection, int error) = 0;
};